home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / ld.394 < prev    next >
Text File  |  1992-02-06  |  691b  |  19 lines

  1. Q:  How do I ensure that a class is really linked in to an app? (Before release 1.0, we used NXLinkUnreferencedClasses.)
  2.  
  3. A:  You have to add "-u .objc_class_name_MyClass" on the link line (where MyClass stands for the name of the class).  You only need to do this if it doesn't get pulled in automatically for you.  If you are using Interface Builder you need to add a Makefile.preamble file with the following line in it:
  4.  
  5.     OTHER_LIBS = -u .objc_class_name_MyClass 
  6.  
  7. Note that this class is probably archived in a library.  In this case, the line in Makefile.preamble should read:
  8.  
  9.     OTHER_LIBS = -u .objc_class_name_MyClass -lMyClasslib
  10.  
  11.  
  12.  
  13. QA394
  14.  
  15. Valid for 1.0 
  16. Not checked yet for 2.0 
  17.  
  18.  
  19.